{% extends 'framework.html' %}

{% block subject %}XSS记录{% endblock %}

{% block content %}
<div class="panel panel-default">
 <div class="panel-heading">XSS记录</div>
 <div class="panel-body">
   <table class="table" >
      <thead>
         <tr>
            <th>时间</th>
            <th>IP地址</th>
            <th>地理位置</th>
            <th>URL</th>
            <th>管理</th>
         </tr>
      </thead>
      <tbody>
        {% for object in object_list %}
         <tr class="{% if not object.is_view %}bg-gray-lighter{% endif %}">
            <td>{{ object.created_time | date:"Y-m-d H:i:s" }}</td>
            <td>{{ object.ip_addr }}</td>
            <td>{{ object.location }}</td>
            <td>{{ object.url }}</td>
            <td>
                <a class="btn-xs btn btn-primary btn-outline" href="{% url 'xss:victim-detail' pk=object.pk %}">查看</a>
                <a class="btn-xs btn btn-danger btn-outline"
                   href="javascript:post_submit('{% url 'xss:victim-delete' pk=object.pk %}')">刪除</a>
            </td>
         </tr>
        {% endfor %}
      </tbody>
   </table>
 </div>
 {% if is_paginated %}
 <div class="panel-footer">
   <div class="pull-right">
    {% include 'pure_pagination/pagination-bootstrap.html' %}
   </div>
   <div class="clearfix"></div>
</div>
 {% endif %}
</div>
{% endblock %}